package com.igroupes.ovineherd.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

import java.io.Serializable;

/**
 * 通用实体对象
 */
@Data
public class BaseEntity implements Serializable {
    @TableField(fill= FieldFill.INSERT)
    private String addTime;
    @TableField(fill= FieldFill.INSERT_UPDATE)
    private String updateTime;
    private Long addUser;
    private Long updateUser;
    @TableLogic
    @TableField(fill= FieldFill.INSERT)
    private Integer isDel;
    /**
     * 这个是为了加锁
     */
    @Version
    @TableField(fill= FieldFill.INSERT)
    private Integer version;
}
